Yes. By default, JFrame
objects can be resized.
setResizable()
One method for ensuring that a graphical interface
looks the way you intend is to prevent the
user from re-sizing it,
using this method of JFrame
:
public void setResizable(boolean resizable)
If the parameter is false then the user cannot re-size the frame. But this does not solve all problems. When a frame contains several logical groups of components it may be difficult to lay them out correctly using a single layout manager. You would like to group related components together, and then to lay out the groups in the frame. This is where panels are useful.
Could a label and the component it labels be grouped together in a panel?